package cn.com.wangluotongxin.netty.event;

import io.netty.buffer.ByteBuf;
import io.netty.channel.Channel;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;


@Getter
public class NettyChannelMessageEvent extends ApplicationEvent {

    private Channel channel;

    private ByteBuf byteBuf;

    public NettyChannelMessageEvent(Object source, Channel channel, ByteBuf byteBuf) {
        super(source);
        this.byteBuf = byteBuf;
        this.channel = channel;
    }
}
